import React, { Component } from 'react';
import {Text, TouchableHighlight} from 'react-native';

export default class MyButton extends Component {
    _onPressButton() {
        console.log("You tapped the button!");
    }
    render() {
        return(
            <TouchableHighlight onPress={this._onPressButton}>
                <Text>Button</Text>
            </TouchableHighlight>
        )
    }
}